package odgs.transaction;

import odgs.ExplorerNode;
import odgs.Transaction;

public class RenameTransaction extends Transaction
{
	private ExplorerNode source;
	private String destName;

	public RenameTransaction(long id)
	{
		super(id);
	}

	@Override
	public String getName()
	{
		return "RenameTransaction";
	}

	@Override
	public boolean isFileTrans()
	{
		return false;
	}

	public void setSource(ExplorerNode node)
	{
		source = node;
	}

	public void setDestName(String dest)
	{
		destName  = dest;
	}
	
	public String getDestName()
	{
		return destName;
	}
	
	public ExplorerNode getSource()
	{
		return source;
	}
}